package main

import (
	"github.com/gin-gonic/gin"
	"gopkg.in/robfig/cron.v2"
	"helloworld/module/user/userJob"
	"helloworld/module/user/userRouter"
)

func main() {
	go Http()
	go CronJobs()
	select {}
}

func Http() {
	r := gin.Default()

	// user
	userRouter.UserRoute(r)

	r.Run(":8080")
}
func CronJobs() {
	c := cron.New()
	// user
	userJob.UserCronJob(c)

	c.Start()
}
